--======================================================================--
-- @作者: QQ381990860
-- @创建时间:   2019-12-03 02:17:19
-- @Last Modified time: 2021-09-08 15:57:14
--======================================================================--
function 道具处理类:转盘抽奖(id,奖励)
	if  玩家数据[id].角色.活动积分 > 20 then
      玩家数据[id].角色.活动积分 = 玩家数据[id].角色.活动积分 -20
			if 奖励 == 1 then
				self:给予道具(id,"摇钱树树苗")
			elseif 奖励 == 2 then
			 self:给予道具(id,"太阳石",math.random(4))
			elseif 奖励 == 3 then
			  角色处理类:添加仙玉(玩家数据[id],math.random(3),"大转盘")
			elseif 奖励 == 4 then
				self:给予道具(id,"金刚石")
			elseif 奖励 == 5 then
				self:给予道具(id,"超级金柳露")
			elseif 奖励 == 6 then
			 角色处理类:添加仙玉(玩家数据[id],math.random(3),"大转盘")
			elseif 奖励 == 7 then
				self:给予道具(id,"夜光珠")
			elseif 奖励 == 8 then
				角色处理类:添加仙玉(玩家数据[id],math.random(3),"大转盘")
			elseif 奖励 == 9 then
				self:给予道具(id,"彩果")
			elseif 奖励 == 10 then
				角色处理类:添加仙玉(玩家数据[id],math.random(3),"大转盘")
			elseif 奖励 == 11 then
				self:给予道具(id,"定魂珠")
			elseif 奖励 == 12 then
		      角色处理类:添加仙玉(玩家数据[id],math.random(3),"大转盘")
			elseif 奖励 == 13 then
		                 local 卡片 ={"海星","狸","章鱼","大海龟","大蝙蝠","赌徒","海毛虫","护卫","巨蛙","强盗","山贼","树怪" ,"蛤蟆精","黑熊","狐狸精","花妖",
		                         "老虎","羊头怪","骷髅怪","狼","牛妖","虾兵","小龙女","蟹将","野鬼","龟丞相","黑熊精","僵尸","马面","牛头","兔子怪","蜘蛛精","白熊",
		                         "进阶白熊","古代瑞兽","进阶古代瑞兽","黑山老妖","进阶黑山老妖","蝴蝶仙子","进阶蝴蝶仙子","雷鸟人","进阶雷鸟人","地狱战神","进阶地狱战神",
		                         "风伯","进阶风伯","天兵","进阶天兵","天将","进阶天将" ,"凤凰" ,"进阶凤凰","雨师","进阶雨师","蛟龙","进阶蛟龙","蚌精","进阶蚌精",
		                         "进阶碧水夜叉","碧水夜叉","进阶鲛人","百足将军","进阶百足将军","锦毛貂精","进阶锦毛貂精","镜妖","进阶镜妖","泪妖","进阶泪妖","千年蛇魅",
		                         "进阶千年蛇魅","如意仙子","进阶如意仙子","鼠先锋","进阶鼠先锋","星灵仙子","进阶星灵仙子","巡游天神","进阶巡游天神","野猪精","进阶野猪精",
		                         "芙蓉仙子","进阶芙蓉仙子","进阶犀牛将军人形","犀牛将军人形","犀牛将军兽形","进阶犀牛将军兽形","阴阳伞","进阶阴阳伞","进阶巴蛇","巴蛇","进阶龙龟",
		                         "龙龟","进阶大力金刚","大力金刚","进阶鬼将","鬼将","进阶红萼仙子","红萼仙子","葫芦宝贝","进阶葫芦宝贝","画魂","进阶画魂","机关鸟",
		                         "进阶机关鸟","机关人","进阶机关人","机关兽","进阶机关兽","金饶僧" ,"进阶金饶僧","进阶净瓶女娲","净瓶女娲","连弩车","进阶连弩车","进阶灵鹤",
		                         "灵鹤","进阶灵符女娲","灵符女娲","进阶律法女娲","律法女娲","琴仙","进阶琴仙","进阶踏云兽" ,"踏云兽","进阶雾中仙","雾中仙","进阶吸血鬼",
		                         "吸血鬼","进阶噬天虎" ,"噬天虎","进阶炎魔神","炎魔神","进阶幽灵","幽灵" ,"进阶幽莹娃娃","幽莹娃娃","夜罗刹" ,"进阶夜罗刹","超级泡泡",
		                         "超级大熊猫","进阶毗舍童子","毗舍童子","长眉灵猴","进阶长眉灵猴","进阶持国巡守","持国巡守","进阶混沌兽","混沌兽","金身罗汉","进阶金身罗汉",
		                         "巨力神猿","进阶巨力神猿","狂豹人形","进阶狂豹人形","狂豹兽形","进阶狂豹兽形","曼珠沙华","进阶曼珠沙华" ,"猫灵人形","进阶猫灵人形","猫灵兽形","进阶猫灵兽形",
		                         "藤蔓妖花","进阶藤蔓妖花","进阶蝎子精","蝎子精","修罗傀儡鬼","进阶修罗傀儡鬼","修罗傀儡妖","进阶修罗傀儡妖","增长巡守","进阶增长巡守",
		                         "进阶真陀护法","真陀护法","蜃气妖","进阶蜃气妖","灵灯侍者","进阶灵灯侍者","般若天女","进阶般若天女"
		                        }
				self:给予道具(id,"怪物卡片",nil,卡片[math.random(1,#卡片)])

			elseif 奖励 == 14 then
				角色处理类:添加仙玉(玩家数据[id],math.random(40),"大转盘")
			end
			角色处理类:添加经验(玩家数据[id],玩家数据[id].角色.等级*玩家数据[id].角色.等级*30+math.random(20,50)*1000,"大转盘")
	else
		   发送数据(玩家数据[id].连接id, 7, "#y/当前活动积分不足20点无法进行抽奖!")
			return 0
	end
	发送数据(玩家数据[id].连接id, 3006, "当前仙玉不足500无法进行抽奖!")
 end